package com.aplink.generic.pojo;

public class ObjectFilter {
    private String mDataObject;
    private String mMappingName;
    private String mFilterValue;
    private String mDefaultValue;

    public String getDataObject() {
        return this.mDataObject;
    }

    public void setDataObject( String dataObject ) {
        this.mDataObject = dataObject;
    }

    public String getMappingName() {
        return this.mMappingName;
    }

    public void setMappingName( String mappingName ) {
        this.mMappingName = mappingName;
    }

    public String getFilterValue() {
        return this.mFilterValue;
    }

    public void setFilterValue( String filterValue ) {
        this.mFilterValue = filterValue;
    }

    public ObjectFilter( String dataObject, String mappingName ) {
        super();
        this.mDataObject = dataObject;
        this.mMappingName = mappingName;
    }

    public ObjectFilter( String dataObject, String mappingName,
                         String filterValue ) {
        super();
        this.mDataObject = dataObject;
        this.mMappingName = mappingName;
        this.mFilterValue = filterValue;
    }

    public ObjectFilter() {
        super();
    }

    public String getDefaultValue() {
        return mDefaultValue;
    }

    public void setDefaultValue( String defaultValue ) {
        this.mDefaultValue = defaultValue;
    }

    public boolean isShowAll() {
        return mFilterValue.equalsIgnoreCase( mDefaultValue );
    }
}
